package liuh.com.ledlamp.act;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;

import liuh.com.ledlamp.R;


/**
 * @note 程序欢迎界面
 * @author liuh
 * */
public class SplashActivity extends AppCompatActivity {

	private static final String LOGTAG = SplashActivity.class.getSimpleName();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		new Handler().postDelayed(new Runnable() {
			public void run() {
				// 跳转主页
				Intent in = new Intent(SplashActivity.this,
						MainActivity.class);
				startActivity(in);
				SplashActivity.this.finish();
			}
		}, 3000); // 3000 for release
	}

}
